//2009/07/28 10:58:50
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>

using namespace std;

class Inventory
{
public:
    int monthlyOrder(vector <int> sales, vector <int> daysAvailable)
    {
		double score = 0.0;
		int count = 0;
		for(int i=0; i<sales.size(); i++)
		{
			if(daysAvailable.at(i) > 0)
			{
				score += (30.0 * sales.at(i)) / (1.0 * daysAvailable.at(i));
				count ++;
			}
		}
		return (int) (score/count + 1 -(1e-9));	 
    }
};

